package com.medical.admin.patient.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 患者购买药物表
 */
@Data
@TableName(value = "mar_patient_medicine")
public class PatientMedicine {
    /**
     * 主键
     */
    @TableId(value = "patient_medical_id", type = IdType.AUTO)
    private Integer patientMedicalId;

    /**
     * 患者id
     */
    @TableField(value = "patient_id")
    private Long patientId;

    /**
     * 药物id
     */
    @TableField(value = "medicine_id")
    private Integer medicineId;

    /**
     * 药品数量
     */
    @TableField(value = "medicine_count")
    private Integer medicineCount;

    /**
     * 创建时间
     */
    @TableField(value = "creat_date")
    private Date creatDate;

    /**
     * 订单id
     */
    @TableField(value = "indent_id")
    private Long indentId;

    public static final String COL_PATIENT_MEDICAL_ID = "patient_medical_id";

    public static final String COL_PATIENT_ID = "patient_id";

    public static final String COL_MEDICINE_ID = "medicine_id";

    public static final String COL_MEDICINE_COUNT = "medicine_count";

    public static final String COL_CREAT_DATE = "creat_date";

    public static final String COL_INDENT_ID = "indent_id";
}